// eslint-disable-next-line no-unused-vars
import storage from 'store'
// eslint-disable-next-line no-unused-vars
import Cookies from 'js-cookie'
import { ACCESS_TOKEN } from '@/vuex/mutation-types'

export function getToken() {
    return Cookies.get(ACCESS_TOKEN)
    // return storage.get(ACCESS_TOKEN)
}

export function setToken(token) {
    return Cookies.set(ACCESS_TOKEN, token)
    // return storage.set(ACCESS_TOKEN, token)
}

export function removeToken() {
    return Cookies.remove(ACCESS_TOKEN)
    // return storage.remove(ACCESS_TOKEN)
}